package org.jix.weblog.module.admin.convert;

import org.jix.weblog.module.admin.model.vo.blogsettings.FindBlogSettingsRspVO;
import org.jix.weblog.module.admin.model.vo.blogsettings.UpdateBlogSettingsReqVO;
import org.jix.weblog.module.common.domain.dos.BlogSettingsDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @version 1.0
 * @Author Jix
 * @Date 2024/9/7 15:56
 * @注释
 */

@Mapper
public interface BlogSettingsConvert {
    /**
     * 初始化实例
     */
    BlogSettingsConvert INSTANCE =  Mappers.getMapper(BlogSettingsConvert.class);

    /**
     * VO转DO
     * @param bean
     * @return
     */
    BlogSettingsDO convertVO2DO(UpdateBlogSettingsReqVO bean);

    /**
     * DO转VO
     * @param bean
     * @return
     */
    FindBlogSettingsRspVO convertDO2VO(BlogSettingsDO bean);
}
